package com.right.health.app.bean;

import android.os.Parcel;
import android.os.Parcelable;

/*
 * Created by hopeliao on 2019-09-25
 *
 */
public class DepartmentInfo implements Parcelable {


    /**
     * createtime : 1574685892000
     * syscommunitycode : 1001002002
     * deptid : 2010204
     * updatetime : 1574685892000
     * description : 
     * syscommunityname : 浙江医院
     * parentid : -1
     * deptname : 住院缴材料
     */
    public long createtime;
    public String syscommunitycode;
    public String deptid;
    public long updatetime;
    public String description;
    public String syscommunityname;
    public String parentid;
    public String deptname;

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeLong(this.createtime);
        dest.writeString(this.syscommunitycode);
        dest.writeString(this.deptid);
        dest.writeLong(this.updatetime);
        dest.writeString(this.description);
        dest.writeString(this.syscommunityname);
        dest.writeString(this.parentid);
        dest.writeString(this.deptname);
    }

    public DepartmentInfo() {
    }

    protected DepartmentInfo(Parcel in) {
        this.createtime = in.readLong();
        this.syscommunitycode = in.readString();
        this.deptid = in.readString();
        this.updatetime = in.readLong();
        this.description = in.readString();
        this.syscommunityname = in.readString();
        this.parentid = in.readString();
        this.deptname = in.readString();
    }

    public static final Parcelable.Creator<DepartmentInfo> CREATOR = new Parcelable.Creator<DepartmentInfo>() {
        @Override
        public DepartmentInfo createFromParcel(Parcel source) {
            return new DepartmentInfo(source);
        }

        @Override
        public DepartmentInfo[] newArray(int size) {
            return new DepartmentInfo[size];
        }
    };
}
